package org.greatstorm.test;

import org.expressme.webwind.Mapping;

import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Singleton;

@Singleton
public class Blog {
	@Mapping("/hello")
	public String hello() {
		return "<h1>Hello, world</h1>";
	}

	public static void main(String[] args) {
		Injector inj = Guice.createInjector();
		Blog b1 = inj.getInstance(Blog.class);
		System.out.println(b1.hello());
		
	}
}
